var setCookie = require('./setCookie');
/**
 * 
 * @desc 删除全部cookie
 */
function clearAllCookies() {
    var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
    if(keys) {
        for(var i = keys.length; i--;) {
            setCookie(keys[i], '1', -1);
        }
    }
}

module.exports = clearAllCookies